Variable sweep wings allow the pilot to change from a straight wing to a sweepback wing depending on the situation.  Straight wings provide more lift and control.  This is important during take off/landing and low speed flight.  For faster speeds, sweepback wings are better.  The F-14 is an aircraft with variable sweep wings.